<?php
class Application_Model_DbTable_Answers extends Zend_Db_Table_Abstract
{
    protected $_name =  'answers'; ///имя таблицы
    
            protected $_referenceMap  = array(
            'User'=> array(
                    'columns'=>'author_id',
                    'refTableClass'=>'Application_Model_DbTable_Users',
                    'refColumns'=> 'id',
                    'onDelete' =>   self::CASCADE
            ),
                'Question'=> array(
                    'columns'=>'question_id',
                    'refTableClass'=>'Application_Model_DbTable_Questions',
                    'refColumns'=> 'id',
                    'onDelete' =>   self::CASCADE
            )
        );
}



?>